<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>欢迎光临</title>
      <link rel="stylesheet" href="/php/public/css/bootstrap.min.css">
</head>
<style>
body{
	margin:0;
	text-align: center;
}
.row{
	margin-top:20px;
}
</style>
<body>
<div class="container">
	<div class="row"> 
		<div class="col-md-3 col-xs-3 col-sm-3">
		</div>
		<div class="col-md-6 col-xs-6 col-sm-6">
			<img src="/php/public/img/biaoti.png" style="width:100%;margin-top:50px">
		</div>
		<div class="col-md-3 col-xs-3 col-sm-3">
		</div>
	</div>
	<div class="row">
		<div class="col-md-2 col-xs-2 col-sm-2">
		</div>
		<div style="background-color:rgb(238,238,238)">
			<div class="col-md-2 col-xs-2 col-sm-2" style="text-align: left;">
				 <p style="font-weight: bold;width:100%;height:34px;text-align: left;line-height: 34px;margin:0px;">区县</p>
				
			</div>
			<div class="col-md-6 col-xs-6 col-sm-6">
				<select class="form-control" id="quxian">
					<option>宝山</option>
					<option>黄浦</option>
					<option>长宁</option>
					<option>徐汇</option>
					<option>静安</option>
					<option>普陀</option>
					<option>虹口</option>
					<option>杨浦</option>
					<option>闵行</option>
					<option>嘉定</option>
					<option>浦东</option>
					<option>金山</option>
					<option>松江</option>
					<option>青浦</option>
					<option>奉贤</option>
					<option>崇明</option>
				</select>
			</div>
		</div>
		<div class="col-md-2 col-xs-2 col-sm-2">
		</div>
	</div>

	<div class="row">
		<div class="col-md-2 col-xs-2 col-sm-2">
		</div>
		<div class="col-md-2 col-xs-2 col-sm-2" style="text-align: left;">
			 <p style="font-weight: bold;width:100%;height:34px;text-align: left;line-height: 34px;margin:0px;">身份</p>
		
		</div>
		<div class="col-md-6 col-xs-6 col-sm-6">
			<select class="form-control" id="shenfen">
				<option>教师</option>
				<option>家长</option>
				<option>学生</option>
			</select>
		</div>
		<div class="col-md-2 col-xs-2 col-sm-2">
		</div>
	</div>

	<div class="row">
		<div class="col-md-2 col-xs-2 col-sm-2">
		</div>
		<div class="col-md-2 col-xs-2 col-sm-2" style="text-align: left;">
			 <p style="font-weight: bold;width:100%;height:34px;text-align: left;line-height: 34px;margin:0px;">姓名</p>
		
		</div>
		<div class="col-md-6 col-xs-6 col-sm-6">
			<input class="form-control" id="name">
		</div>
		<div class="col-md-2 col-xs-2 col-sm-2">
		</div>
	</div>

	<div class="row" style="margin-top:50px">
		<div class="col-md-2 col-xs-2 col-sm-2">
		</div>
		<div class="col-md-8 col-xs-8 col-sm-8">
			<button class="btn btn-success" style="width:100%" onclick="sub()">签到</button>
		</div>
		<div class="col-md-2 col-xs-2 col-sm-2">
		</div>
	</div>

</div>
</body>
<script type="text/javascript" src="/php/public/js/jquery.min.js"></script>
<script type="text/javascript">
	var ajaxpedding=0;
	function sub(){
	
		var url="/php/public/wechat/qiandao/qiandaosuccess";
		if($('#name').val()==''){
			alert('请输入姓名');
			return;
		}
		var data={};
			data['name']=$('#name').val();
			data['quxian']=$('#quxian').val();
			data['shenfen']=$('#shenfen').val();
		$.post(url,data,function(redata){

			if(redata.status==1){
				alert('签到成功');
				window.location.href="/php/public/wechat/choujiang/choujiang";
			}else if(redata.status==2){
				alert(redata.msg);
			}else{
				alert('签到失败');
			}
			
		},'json');
	}
</script>


</html>
